<div class="wide form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'speed-form',
	'enableAjaxValidation'=>true,
)); ?>

	<p class="note"><?php echo Yii::t('main','Fields with')?> <span class="required">*</span> <?php echo Yii::t('main','are required.')?></p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'name'); ?>
		<?php echo $form->textField($model,'name',array('size'=>60,'maxlength'=>128)); ?>
		<?php echo $form->error($model,'name'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'world_in'); ?>
		<?php echo $form->textField($model,'world_in'); ?>
		<?php echo $form->error($model,'world_in'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'world_out'); ?>
		<?php echo $form->textField($model,'world_out'); ?>
		<?php echo $form->error($model,'world_out'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'ukraine_in'); ?>
		<?php echo $form->textField($model,'ukraine_in'); ?>
		<?php echo $form->error($model,'ukraine_in'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'ukraine_out'); ?>
		<?php echo $form->textField($model,'ukraine_out'); ?>
		<?php echo $form->error($model,'ukraine_out'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'is_active'); ?>
		<?php echo $form->checkBox($model,'is_active'); ?>
		<?php echo $form->error($model,'is_active'); ?>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? Yii::t('main','Create') : Yii::t('main','Save')); ?>
		<?php echo Yii::t('main','or');?>
		<?php echo CHtml::link(Yii::t('main', 'Cancel'),Yii::app()->user->returnUrl,array('class'=>'cancel')); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->